package com.cbs.android.function.qrcodescan;

import android.content.Intent;

import com.cbs.android.component.application.activity.handler.CBSSimpleActivityResultHandler;

/**
 * Created by brochexu on 12/29/14.
 */
public abstract class QRCodeScanHandler extends CBSSimpleActivityResultHandler {
    public abstract void onScanSuccess(int requestCode, Intent intent, String code);

    @Override
    public void onSuccess(int requestCode, Intent intent) {
        onScanSuccess(requestCode, intent, intent.getStringExtra(QRCodeScanFunction.Extras.Result));
    }
}
